import axios from "axios";

function request(url, method = 'get', data) {
    const urlPrev = '/dev-api/';
    return axios({
        url: `${urlPrev}${url}`,
        method: method,
        data: data
    })
}


export default {
    add: function (data) {
        debugger
        return request('device', 'post', data);
    },
    getList: function () {
        return request('device')
    }
}